#include "cache.h"
#include "md5.h"
#include "cache.hpp"
#include <iostream>
using namespace std;
using namespace  ycache;
int main(){
   Cache<int,int> ca;
   ca.Put(1,200);
   int v;
   ca.Get(2,v);
   cout<<v<<endl;
   ca.Get(1,v);
   cout<<v<<endl;
   string str="helo";
   MD5Cache<int> ca_md5(200);
   ca_md5.SetMaxSize(4);
   CMD5 cmd5;
   MD5_DATA data;
   cmd5.GenerateMD5((uint8_t *)str.c_str(),str.length());
   data=cmd5.m_data;
   ca_md5.Put(data,2009);
   ca_md5.Get(str,v);
   cout<<v<<endl;
    return 1;

}
